#ifndef __ADC__
#define __ADC__
#include <include/AT91SAM7S64.h>

	/**	@fn	ADC_Init()
			@brief	initializes the ADC module
			@return	void
			*/
	void ADC_Init(void);
	
	/**	@fn	ADC_Read(unsigned short int channel)
      @brief	reads a value from a given channel of the ADC
      @param	channel	
      @return	long integer w/ ADC value
      */
	long int ADC_Read(unsigned short int channel);
	
	/**	@fn ADC_Read_Multiple(unsigned char channel_select, unsigned char total_number_used_ADCS,unsigned int *result)
			@brief	reads data from several channels of the ADC
			@param	channel_select	
			@param	total_number_used_ADCS
			@param	result
			@return	void
			*/
	void ADC_Read_Multiple(unsigned char channel_select, unsigned char total_number_used_ADCS,unsigned int *result);

#endif
